From: Niklas Laxström Date: Tue, 20 Sep 2011 16:26:39 +0000 (+0000) Subject: I broke few parser tests in r97633 by overlooking the return value. This fixes them. X-Git-Tag: 1.31.0-rc.0~27525 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=efb7b817a76b05c93a7216dc7dc682d12b0912f4;p=lhc%2Fweb%2Fwiklou.git I broke few parser tests in r97633 by overlooking the return value. This fixes them. --- diff --git a/includes/cache/LinkCache.php b/includes/cache/LinkCache.php index 9362c084eb..785b19b3b1 100644 --- a/includes/cache/LinkCache.php +++ b/includes/cache/LinkCache.php @@ -200,8 +200,10 @@ class LinkCache { # Set fields... if ( $s !== false ) { $this->addGoodLinkObjFromRow( $nt, $s ); + $id = intval( $s->page_id ); } else { $this->addBadLinkObj( $nt ); + $id = 0; } wfProfileOut( __METHOD__ );